// 复制到剪贴板
export function copyToClipboard(text: string){
    return navigator.clipboard.writeText(text)
    .then(()=>Promise.resolve(text))
    .catch((err)=>Promise.reject(err));
}